home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Video Toaster 4.3
/
Video Toaster v4.3.iso
/
4.2
/
arexx
/
editor
/
buttaudio.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-04-16
|
1KB
|
61 lines
/* ButtAudio.rexx V2.0 -- Butt all your audio clips together. */
/* By Bob Caron (Grue) ©1995 NewTek Inc. (Remember...) */
call remlib('PROJECT_REXX_PORT')
call addlib('PROJECT_REXX_PORT',0)
call set_view(2)
call req_error("ButtAudio V2.0 --- Adjust audio clip start times to play one after another.")
if req_tell("Ok to butt ALL audio start times?") = 0 then call quit
start_loc=croutonspot()
call croutonpick(LAST)
project_end=croutonspot()
call croutonpick(FIRST)
current_spot=0
isaudio=0
do while (current_spot<project_end+1)
call croutonpick(current_spot)
current_spot=current_spot+1
if croutontype()=" AUD" then do
prevstart=croutongettag(Delay)
isaudio=1
current_temp=current_spot
current_spot=project_end+1
end
end
if isaudio=0 then do
call req_tell("There are NO audio croutons!")
call quit
end
current_spot=current_temp-1
call req_open("Working... Please wait.")
do current_spot=current_temp-1 to project_end
if crnumtype(current_spot)=" AUD" then do
call crnumsettag(current_spot,Delay,PrevStart)
call crnumsettag(current_spot,TimeMode,2) /* Locking to 1=inpoint 0=clip */
end
prevstart=prevstart+crnumgettag(current_spot,AudioDuration)
end
call req_close()
call croutonpick(start_loc)
call projectupdate()
call req_error("All Done!")
call remlib("PROJECT_REXX_PORT")
exit
quit:
call req_error("")
call remlib("PROJECT_REXX_PORT")
exit